#set($ctx = $request.getContextPath())
#macro( pageCount $currentPage $maxPage )
	#if($currentPage>$maxPage)
		#set($currentPage=$maxPage)
		$!currentPage
	#elseif($currentPage<1)
		#set($currentPage = 1)
		$!currentPage
	#else
		$!currentPage
	#end	
#end
#macro( addIndex $current $count)
	#set($current=$current + $count)
	$!current
#end
<!doctype html>
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]>    <html class="ie7"> <![endif]-->
<!--[if IE 8 ]>    <html class="ie8"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html> <!--<![endif]-->
	<head>
		
		<!-- META -->
		<title>多维矩阵-企业网络信息化专家</title>
		<meta charset="utf-8" />	
		<meta name="description" content=" 多维矩阵  ... " />
		<meta name="keywords"    content=" 微电影 微广播 微推广工具开发   ... " />	
		
		<!-- FAVICON  -->
		<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />					
			
		<!-- STYLESHEETS -->
		<link rel="stylesheet" href="${ctx}/r/cms/www/dwcom/css/style.css" />
		<link rel="stylesheet" href="${ctx}/r/cms/www/dwcom/css/nivo-slider.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="${ctx}/r/cms/www/dwcom/css/prettyPhoto.css" />
		<link rel="stylesheet" href="${ctx}/r/cms/www/dwcom/css/jquery.validity.css" />
		
		<!-- SCRIPTS -->
		<script src="${ctx}/r/cms/www/dwcom/js/jquery-1.5.1.min.js" type="text/javascript"></script>
		<script src="${ctx}/r/cms/www/dwcom/js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
		<script src="${ctx}/r/cms/www/dwcom/js/jquery.prettyPhoto.js" type="text/javascript"></script>
		<script src="${ctx}/r/cms/www/dwcom/js/jquery.validity.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(window).load(function() {
				$('#slider').nivoSlider();
			});
		</script>   		
				
	</head>
	<body>
<!-- HEADER -->
${httpInclude.include("top.vm")}
<!-- end HEADER --> 	
		
		<!-- MAIN -->
		<div id="main" class="container">
			<!-- Content -->				
			<div id="content">
				#if($contentDtoList.size()<1)
					对不起!,本栏目还没有内容!!
				#else
					<p >位置:首页->新闻动态</p>
					#foreach( $content in $contentDtoList )
					<span class="date">$!content.releaseDate</span>
					<h3><a href="$!{ctx}/v_content.vm?contentId=$!{content.contentId}">$!content.title</a></h3>
					<p>$!content.description</p>
					#end										
					<!-- span class="date">APR 18, 2011</span>
					<h3>多维矩阵网络科技技术有限公司正式成立</h3>
					<p><img class="left shadow" src="images/img-10-204x120.jpg">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec tincidunt vehicula tortor, ut mollis nibh viverra at. Morbi purus neque, suscipit ut gravida id, sagittis vel urna.</p>
					<p>Fusce semper pharetra quam, vel facilisis dolor conur non. Mauris nulla ligula, fermentum ut sagittis vitae, faucibus at augue. Sed leo est, rhoncus ac scelerisque ut, elementum sit amet est. Aenean dictum nibh ut neque gravida ut pellentesque massa posuere. Duis consequat posuere lacus, a blandit massa pellentesque eget. Nullam adipiscing, justo in mattis volutpat, metus lorem porttitor arcu, id consectetur quam sem sit amet dui.</p>									
					<div class="delimiter"></div>
					
					<span class="date">APR 18, 2011</span>
					<h3>多维矩阵网络科技技术有限公司正式成立</h3>
					<p><img class="left shadow" src="images/img-10-204x120.jpg">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec tincidunt vehicula tortor, ut mollis nibh viverra at. Morbi purus neque, suscipit ut gravida id, sagittis vel urna.</p>
					<p>Fusce semper pharetra quam, vel facilisis dolor conur non. Mauris nulla ligula, fermentum ut sagittis vitae, faucibus at augue. Sed leo est, rhoncus ac scelerisque ut, elementum sit amet est. Aenean dictum nibh ut neque gravida ut pellentesque massa posuere. Duis consequat posuere lacus, a blandit massa pellentesque eget. Nullam adipiscing, justo in mattis volutpat, metus lorem porttitor arcu, id consectetur quam sem sit amet dui.</p>									
					<div class="delimiter"></div>				
					-->
						
					#set($before =$page.currentPage - 1)
					#set($next =$page.currentPage + 1)
					#set($remain = $page.totalPage - $page.currentPage)
					<ul class="pagenav">
						<li><a href="${ctx}/v_news_list.vm?pageNo=1" title="首页">&laquo;</a></li>
						<li><a href="${ctx}/v_news_list.vm?pageNo=#pageCount($!before,${page.totalPage})" title="上页">&lsaquo;</a></li>
						#if($remain>=0)
						<li class="current">#if($page.currentPage==0) 1 #else $page.currentPage #end</li>
						#end
						#if($remain>=1)
						<li><a href="${ctx}/v_news_list.vm?pageNo=#addIndex($page.currentPage,1)">#addIndex($page.currentPage,1)</a></li>
						#end
						#if($remain>=2)
						<li><a href="${ctx}/v_news_list.vm?pageNo=#addIndex($page.currentPage,2)">#addIndex($page.currentPage,2)</a></li>
						#end
						#if($remain>=3)
						<li><a href="${ctx}/v_news_list.vm?pageNo=#addIndex($page.currentPage,3)">#addIndex($page.currentPage,3)</a></li>
						#end
						#if($remain>=4)
						<li><a href="${ctx}/v_news_list.vm?pageNo=#addIndex($page.currentPage,4)">#addIndex($page.currentPage,4)</a></li>
						<li class="extend">...</li>
						#end
						<li><a href="${ctx}/v_news_list.vm?pageNo=#pageCount($next,${page.totalPage})" title="下页">&rsaquo;</a></li>
						<li><a href="${ctx}/v_news_list.vm?pageNo=${page.totalPage}" title="尾页">&raquo;</a></li>
					</ul>		
        		#end
			</div>	<!-- end Content -->			
			
			<!-- Sidebar -->
				${httpInclude.include("v_sidebar.vm")}
			<!-- end Sidebar -->			
		
		</div>
		<!-- end MAIN -->
		
		<!-- FOOTER -->
${httpInclude.include("footer.vm")}
		<!-- end FOOTER -->
	</body>
</html>		
